package com.veryUsedCar.enums;

public enum ConstantEnum {
    ERROR(99999,"操作失败"),
    SUCCESS(10000, "操作成功"),
    DPASSWORD_ERROR(10001,"密码错误"),
    LOGIN_STATUS_IS_NOT_APPROVED(10002,"未审核"),
    NOT_LOGGED_IN(10003,"未登录"),
    SALE_OVER(10006,"商品已抢光"),
    ARGS_NULL(10008, "参数不能为空"),
    Last_level(10009,"当前是最后一级"),
    THERE_ARE_SUBCLASSES_THAT_CANNOT_BE_DELETED(10010,"有子集不可删除"),
    DELETION_SUCCEEDED(10011,"删除成功"),
    UPDATE_SUCCESS(29002,"更新成功"),
    FLOWLIMITING(10010,"请求被限流"),
    ;
    private Integer code;
    private String message;

    ConstantEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
